import { createRouter, createWebHashHistory } from 'vue-router';

const routes = [
  {
    path: '/',
    redirect: '/invitation',
  },
  {
    path: '/invitation',
    name: 'invitation',
    component: () => import('../views/invitation/index.vue'),
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('../views/login/index.vue'),
  },
  {
    path: '/register',
    name: 'register',
    component: () => import('../views/register/index.vue'),
  },
  {
    path: '/forgetpsd',
    name: 'forgetpsd',
    component: () => import('../views/forgetpsd/index.vue'),
  },
  {
    path: '/agreement1',
    name: 'agreement1',
    component: () => import('../views/agreement/index.vue'),
  },
  {
    path: '/agreement2',
    name: 'agreement2',
    component: () => import('../views/agreement/index2.vue'),
  },
];

const router = createRouter({
  history: createWebHashHistory(),
  routes,
});

export default router;
